<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition template="templates/template.xhtml">

	<ui:define name="title">
	 	Help Page
	</ui:define>
	<ui:param name="page" value="help" /> 
	<ui:define name="header">
		<ui:include src="header.xhtml" /> 
	</ui:define>

	<ui:define name="menu">
				
	</ui:define>
	
	<ui:define name="body">
	
	<h:form>
			<h:panelGrid columns="1" width="80%" styleClass="outerTable" columnClasses="standardTable_ColumnCentered">
			<f:facet name="header" style="font-weight:bold;">
				<h:outputText value="Search Results For \'#{searchResultBean.searchWord}\' (#{searchResultBean.resultsCount} Matches Found)"/>
			</f:facet>
			<h:column>
			<center>
			<t:dataTable renderedIfEmpty="false"  id="searchResultsTable"
				value="#{searchResultBean.results}" var="record"
				styleClass="iCubed" width="100%" rows="10" rowIndexVar="rowNumber" preserveSort="true"
                preserveDataModel="true">
                 
	          	<h:column >
					<f:facet name="header">
						<h:outputText id="content" value="Content" />
					</f:facet>
					<h:outputLabel value="#{rowNumber+1}" />
				</h:column>
				
				<h:column>
					<f:facet name="header">
						<h:outputText id="uuidLabel"
							value="Court Action Number" />
					</f:facet>
					<h:outputText value="#{record.docketId}"/> 
				</h:column>
				
				<h:column>
					<f:facet name="header">
						<h:outputText value="Document Title"/>
					</f:facet>
		         	<h:commandLink  value="#{record.documentTitle}" action="#{searchResultBean.viewAttachment}"  styleClass="#{linkClass}">
		        		<f:param name="uuid" id="uuid" value="#{record.caseRecordUuid}" />  
		          		<f:param name="title" value="#{record.documentTitle}"/>
		          	</h:commandLink>
				</h:column>
			</t:dataTable>
			</center>
			</h:column>			
			<h:column>
			<div align="center">
				<t:dataScroller fastStep="5"
					styleClass="scrollerTable" pageCountVar="pageCount"
					pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
					paginatorTableClass="paginator"
					paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
					for="searchResultsTable">
					<f:facet name="first">
						<t:graphicImage url="/images/arrow-first.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="last">
						<t:graphicImage url="/images/arrow-last.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="previous">
						<t:graphicImage url="/images/arrow-previous.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="next">
						<t:graphicImage url="/images/arrow-next.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastforward">
						<t:graphicImage url="/images/arrow-ff.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastrewind">
						<t:graphicImage url="/images/arrow-fr.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
				</t:dataScroller>
				</div>
				</h:column>
			</h:panelGrid>
		</h:form>

</ui:define>

</ui:composition>

</html>

